<?php

namespace App\Models;


class Order extends Base
{

    // 用户管理
    protected $table = 'order';

    // 缓存字段，用于搜索绑定的字段
    protected $cacheFields = ['id', 'uid'];


    // 定义验证操作
    public function rules()
    {

        $add = [
        ];

        $edit = [
        ];

        $info = [
        ];


        $rule = [
            'ip'   => 'required',
            'city' => 'required',
            'prov' => 'required',
        ];


        $msg = [
            'id'     => '自编号',
            'uid'    => '用户',
            'money'  => '总价',
            'status' => '订单状态',
            'ctime'  => '创建时间',
            'mtime'  => '修改时间',
        ];

        return ['rule' => $rule, 'msg' => $msg, 'add' => $add];
    }
}
